/** 
 *  @file       led.c
 *  @brief      LED驱动程序     开发板的P0端口连接8个LED
 *  @author     Z B T   
 *  @version    V0.1
 *  @date       2015-10
 */
 
#include "led.h"
#include "config.h"

#define LED_PORT    P0        

/**
 *  点亮LED
 *  @param [in] led_value
 *  @return None
 */
void led_on(unsigned char led_value)
{
    LED_PORT |= led_value;
}


/**
 *  熄灭LED
 *  @param [in] led_value
 *  @return None
 */
void led_off(unsigned char led_value)
{
    LED_PORT &= ~led_value;
}